package cn.yuan.user.mapper;

import cn.yuan.basic.mapper.BaseMapper;
import cn.yuan.user.domain.Logininfo;
import cn.yuan.user.dto.LoginDto;


public interface LogininfoMapper extends BaseMapper<Logininfo> {

    /*批量删除*/
    void batchDel(Long[] ids);

    Logininfo loadByUser(LoginDto loginDto);

    /**
     * 通过userId级联查询loginInfo
     * @param user_id
     * @return
     */
    Logininfo loadByUserId(Long user_id);

    Logininfo loadById(Long logininfo_id);
}
